﻿@model SGC_CarteraClientes.Models.CA_CAMPANIA

@{
    ViewBag.Title = "Modificar";
}

<h2>Modificar Campaña</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Campaña</legend>

        <div class="editor-label">
            @Html.Label("Codigo")
        </div>
        <div class="noView">
        <div class="editor-field">
            @Html.EditorFor(model => model.CAMP_ID)
            @Html.ValidationMessageFor(model => model.CAMP_ID)
        </div>
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.CAMP_ID, new { @disabled ="disabled", @size = "10" })
            @Html.ValidationMessageFor(model => model.CAMP_ID)
        </div>
        <div class="editor-label">
            @Html.Label("Descripción")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CAMP_DESCRIP)
            @Html.ValidationMessageFor(model => model.CAMP_DESCRIP)
        </div>

        <div class="editor-label">
            @Html.Label("Fecha Inicio Vigencia")
        </div>
        <div class="editor-field d-tcal">
            @Html.EditorFor(model => model.CAMP_FINIV, new {@class="tcal" })
            @Html.ValidationMessageFor(model => model.CAMP_FINIV)
        </div>

        <div class="editor-label">
            @Html.Label("Fecha Fin Vigencia")
        </div>
        <div class="editor-field d-tcal">
            @Html.EditorFor(model => model.CAMP_FINV, new {@class="tcal" })
            @Html.ValidationMessageFor(model => model.CAMP_FINV)
        </div>

        <div class="editor-label">
            @Html.Label("Parametro de Campaña")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PARAM_ID", String.Empty)
            @Html.ValidationMessageFor(model => model.PARAM_ID)
        </div>

        <div class="editor-label">
            @Html.Label("[%] Comisión")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CAMP_PORCOMI)
            @Html.ValidationMessageFor(model => model.CAMP_PORCOMI)
        </div>

        <div class="editor-label">
            @Html.Label("[%] Descuento")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CAMP_DCTO)
            @Html.ValidationMessageFor(model => model.CAMP_DCTO)
        </div>

        


        <p>
            <input type="submit" value="Grabar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Styles.Render("~/Content/themes/base/css")
}
